package com.xl.studentpass.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author: xl
 * @createTime: 2023/6/8 14:25:37
 * @program: student-pass
 * @e-mail: 2199396150@qq.com
 * @description:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_comments")
public class CommentEntity {
    private Integer id;
    private Integer userId;
    @TableField(exist = false)
    private String userName;
    private Integer communityId;
    private String content;
    private Integer parentId;
    private String createTime;
    private String operaTime;
    @TableField(exist = false)
    private String headUrl;
    @TableLogic
    private Integer valid;
    @TableField(exist = false)
    private List<CommentEntity> children;
}
